package com.turing.post.cardmanagement.util;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 调拨单
 * 
 * @author ys
 * @date 2012-12-17
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "TransferInOutStockOrder")
public class TransferInOutStockOrder implements Serializable {

	public TransferInOutStockOrder() {

	}

	/**
	 * 调拨单ID
	 */
	private BigInteger transferOrderId;
	/**
	 * 单据编号
	 */
	private String orderNumber;
	/**
	 * 从发卡商机构
	 */
	private String FromIssueBranchNo;
	/**
	 * 到发卡商机构
	 */
	private String ToIssueBranchNo;
	/**
	 * 从销售机构
	 */
	private String FromSaleBranchNo;
	/**
	 * 到销售机构
	 */
	private String ToSaleBranchNo;
	/**
	 * 调拨时间
	 */
	private Date TranTime;
	/**
	 * 取消调拨单ID
	 */
	private BigInteger cancelTransferOrderId;
	/**
	 * 调拨状态
	 */
	private String TransferStatus;
	/**
	 * 调出库管ID
	 */
	private BigInteger IssueOperId;
	/**
	 * 接收库管ID
	 */
	private BigInteger ConfirmOperId;
	/**
	 * 接收时间
	 */
	private Date ConfirmTime;
	/**
	 * 备注
	 */
	private String Remark;
	/**
	 * 确认或拒绝原因
	 */
	private String ConfirmCancelRemark;

	/**
	 * 调出录入
	 */
	public final static String TRANSFERINOUTSTOCKORDER_TRANSFERSTATUS_OUTTYPEDIN = "0";
	/**
	 * 调出在途
	 */
	public final static String TRANSFERINOUTSTOCKORDER_TRANSFERSTATUS_OUTONPASSAGE = "1";

	/**
	 * 接收
	 */
	public final static String TRANSFERINOUTSTOCKORDER_TRANSFERSTATUS_RECEIVE = "2";
	/**
	 * 接收确认
	 */
	public final static String TRANSFERINOUTSTOCKORDER_TRANSFERSTATUS_RECEIVEAUTH = "3";

	/**
	 * 拒收
	 */
	public final static String TRANSFERINOUTSTOCKORDER_TRANSFERSTATUS_REJECTION = "4";

	/**
	 * 取消调出
	 */
	public final static String TRANSFERINOUTSTOCKORDER_TRANSFERSTATUS_OUTCANCEL = "5";

	@Id
	@Column(name = "transferOrderId", nullable = false)
	public BigInteger getTransferOrderId() {
		return transferOrderId;
	}

	public void setTransferOrderId(BigInteger transferOrderId) {
		this.transferOrderId = transferOrderId;
	}

	@Column(name = "orderNumber")
	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	@Column(name = "TRANSFERSTATUS", nullable = true)
	public String getTransferStatus() {
		return TransferStatus;
	}

	public void setTransferStatus(String transferStatus) {
		TransferStatus = transferStatus;
	}

	@Column(name = "ISSUEOPERID", nullable = true)
	public BigInteger getIssueOperId() {
		return IssueOperId;
	}

	public void setIssueOperId(BigInteger issueOperId) {
		IssueOperId = issueOperId;
	}

	@Column(name = "CONFIRMOPERID", nullable = true)
	public BigInteger getConfirmOperId() {
		return ConfirmOperId;
	}

	public void setConfirmOperId(BigInteger confirmOperId) {
		ConfirmOperId = confirmOperId;
	}

	@Column(name = "CONFIRMTIME", nullable = true)
	public Date getConfirmTime() {
		return ConfirmTime;
	}

	public void setConfirmTime(Date confirmTime) {
		ConfirmTime = confirmTime;
	}

	@Column(name = "CONFIRMCANCELREMARK", nullable = true)
	public String getConfirmCancelRemark() {
		return ConfirmCancelRemark;
	}

	public void setConfirmCancelRemark(String confirmCancelRemark) {
		ConfirmCancelRemark = confirmCancelRemark;
	}

	@Column(name = "FROMISSUEBRANCHNO", nullable = true)
	public String getFromIssueBranchNo() {
		return FromIssueBranchNo;
	}

	public void setFromIssueBranchNo(String fromIssueBranchNo) {
		FromIssueBranchNo = fromIssueBranchNo;
	}

	@Column(name = "TOISSUEBRANCHNO", nullable = true)
	public String getToIssueBranchNo() {
		return ToIssueBranchNo;
	}

	public void setToIssueBranchNo(String toIssueBranchNo) {
		ToIssueBranchNo = toIssueBranchNo;
	}

	@Column(name = "FROMSALEBRANCHNO", nullable = true)
	public String getFromSaleBranchNo() {
		return FromSaleBranchNo;
	}

	public void setFromSaleBranchNo(String fromSaleBranchNo) {
		FromSaleBranchNo = fromSaleBranchNo;
	}

	@Column(name = "TOSALEBRANCHNO", nullable = true)
	public String getToSaleBranchNo() {
		return ToSaleBranchNo;
	}

	public void setToSaleBranchNo(String toSaleBranchNo) {
		ToSaleBranchNo = toSaleBranchNo;
	}

	@Column(name = "TRANTIME", nullable = false)
	public Date getTranTime() {
		return TranTime;
	}

	public void setTranTime(Date tranTime) {
		TranTime = tranTime;
	}

	@Column(name = "ISSUEOPERID", nullable = false)
	public BigInteger getOperNo() {
		return IssueOperId;
	}

	public void setOperNo(BigInteger issueOperId) {
		IssueOperId = issueOperId;
	}

	@Column(name = "REMARK", nullable = true)
	public String getRemark() {
		return Remark;
	}

	public void setRemark(String remark) {
		Remark = remark;
	}

	@Column(name = "cancelTransferOrderId")
	public BigInteger getCancelTransferOrderId() {
		return cancelTransferOrderId;
	}

	public void setCancelTransferOrderId(BigInteger cancelTransferOrderId) {
		this.cancelTransferOrderId = cancelTransferOrderId;
	}
}
